package com.sp.scmdb.bean;

public class TagBean   extends PageBean{

	private int id;
	
	private String tagno;
	
	
	private String usestat;
	
	
	private String powerstat;


	/**
	 * @return the id
	 */
	public int getId() {
		return id;
	}


	/**
	 * @return the tagno
	 */
	public String getTagno() {
		return tagno;
	}


	/**
	 * @return the usestat
	 */
	public String getUsestat() {
		return usestat;
	}


	/**
	 * @return the powerstat
	 */
	public String getPowerstat() {
		return powerstat;
	}


	/**
	 * @param id the id to set
	 */
	public void setId(int id) {
		this.id = id;
	}


	/**
	 * @param tagno the tagno to set
	 */
	public void setTagno(String tagno) {
		this.tagno = tagno;
	}


	/**
	 * @param usestat the usestat to set
	 */
	public void setUsestat(String usestat) {
		this.usestat = usestat;
	}


	/**
	 * @param powerstat the powerstat to set
	 */
	public void setPowerstat(String powerstat) {
		this.powerstat = powerstat;
	}


	/* (non-Javadoc)
	 * @see java.lang.Object#hashCode()
	 */
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + id;
		result = prime * result
				+ ((powerstat == null) ? 0 : powerstat.hashCode());
		result = prime * result + ((tagno == null) ? 0 : tagno.hashCode());
		result = prime * result + ((usestat == null) ? 0 : usestat.hashCode());
		return result;
	}


	/* (non-Javadoc)
	 * @see java.lang.Object#equals(java.lang.Object)
	 */
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		TagBean other = (TagBean) obj;
		if (id != other.id)
			return false;
		if (powerstat == null) {
			if (other.powerstat != null)
				return false;
		} else if (!powerstat.equals(other.powerstat))
			return false;
		if (tagno == null) {
			if (other.tagno != null)
				return false;
		} else if (!tagno.equals(other.tagno))
			return false;
		if (usestat == null) {
			if (other.usestat != null)
				return false;
		} else if (!usestat.equals(other.usestat))
			return false;
		return true;
	}

	
}
